package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 节点信息表 实体类
 * 表名：ra_node
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_node")
public class RaNode implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 节点名称
     */
    @Column(name = "node_name", nullable = false, length = 64)
    private String nodeName;
    
    /**
     * 节点编码
     */
    @Column(name = "node_code", length = 16)
    private String nodeCode;
    
    /**
     * 设备类型
     */
    @Column(name = "device_type", length = 32)
    private String deviceType;
    
    /**
     * 颜色
     */
    @Column(name = "color", nullable = false, length = 16)
    private String color;
    
    /**
     * 节点描述
     */
    @Column(name = "node_desc", length = 65535)
    private String nodeDesc;
    
    /**
     * 主要参数
     */
    @Column(name = "major_param", length = 512)
    private String majorParam;
    
    /**
     * 图纸编号
     */
    @Column(name = "drawing_num", length = 64)
    private String drawingNum;
    
    /**
     * 会期
     */
    @Column(name = "valid_date")
    private java.time.LocalDateTime validDate;
    
    /**
     * 位号
     */
    @Column(name = "bit_no", length = 128)
    private String bitNo;
    
    /**
     * 排序号
     * 默认值: 0
     */
    @Column(name = "sort_no")
    private Integer sortNo;
    
    /**
     * 租户主键
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", nullable = false, length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", nullable = false, length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaNode{" +
            "id=" + id +
            ", nodeName=" + nodeName +
            ", nodeCode=" + nodeCode +
            ", deviceType=" + deviceType +
            ", color=" + color +
            ", nodeDesc=" + nodeDesc +
            ", majorParam=" + majorParam +
            ", drawingNum=" + drawingNum +
            ", validDate=" + validDate +
            ", bitNo=" + bitNo +
            ", sortNo=" + sortNo +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 